package edu.hubu.talentmanagementsystem.model.ext;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDate;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import edu.hubu.talentmanagementsystem.model.Model;

import java.io.Serializable;

/**
 * <p>
 * 员工岗位记录表
 * </p>
 *
 * @author moonlan
 * @since 2021-03-13
 */
@TableName("staff_company_position_record")
public class StaffCompanyPositionRecord extends Model<StaffCompanyPositionRecord> implements Serializable {


    /**
     * 记录ID
     */
    @TableId(value = "staff_company_position_record_id", type = IdType.AUTO)
    private Integer staffCompanyPositionRecordId;

    @TableField("staff_id")
    private Integer staffId;

    @TableField(exist = false)
    private Staff staff;

    @TableField("company_position_id")
    private Integer companyPositionId;

    /**
     * 员工入岗时间
     */
    @TableField("staff_enter_time")
    private LocalDate staffEnterTime;

    /**
     * 员工入岗备注
     */
    @TableField("staff_company_position_record_desc")
    private String staffCompanyPositionRecordDesc;

    public Staff getStaff() {
        return staff;
    }

    public StaffCompanyPositionRecord setStaff(Staff staff) {
        this.staff = staff;
        return this;
    }

    public Integer getStaffCompanyPositionRecordId() {
        return staffCompanyPositionRecordId;
    }

    public StaffCompanyPositionRecord setStaffCompanyPositionRecordId(Integer staffCompanyPositionRecordId) {
        this.staffCompanyPositionRecordId = staffCompanyPositionRecordId;
        return this;
    }

    public Integer getStaffId() {
        return staffId;
    }

    public StaffCompanyPositionRecord setStaffId(Integer staffId) {
        this.staffId = staffId;
        return this;
    }

    public Integer getCompanyPositionId() {
        return companyPositionId;
    }

    public StaffCompanyPositionRecord setCompanyPositionId(Integer companyPositionId) {
        this.companyPositionId = companyPositionId;
        return this;
    }

    public LocalDate getStaffEnterTime() {
        return staffEnterTime;
    }

    public StaffCompanyPositionRecord setStaffEnterTime(LocalDate staffEnterTime) {
        this.staffEnterTime = staffEnterTime;
        return this;
    }

    public String getStaffCompanyPositionRecordDesc() {
        return staffCompanyPositionRecordDesc;
    }

    public StaffCompanyPositionRecord setStaffCompanyPositionRecordDesc(String staffCompanyPositionRecordDesc) {
        this.staffCompanyPositionRecordDesc = staffCompanyPositionRecordDesc;
        return this;
    }

    @Override
    public String toString() {
        return "StaffCompanyPositionRecord{" +
                "staffCompanyPositionRecordId=" + staffCompanyPositionRecordId +
                ", staffId=" + staffId +
                ", companyPositionId=" + companyPositionId +
                ", staffEnterTime=" + staffEnterTime +
                ", staffCompanyPositionRecordDesc=" + staffCompanyPositionRecordDesc +
                "}";
    }
}
